package pkg.andru.animation;

import android.graphics.Canvas;

/**
 * the drawable interface, all things can be drawed will extends this interface
 * 
 * @author idiottiger
 * 
 */
public interface IDrawable<T extends IDrawState> {

    /**
     * on draw method, actually draw operation
     * 
     * @param canvas
     * @param state
     *            the draw state, contain position or another things
     */
    public void onDraw(Canvas canvas, T state);

}
